<div class="doc-item" id="doc-1199"><h2 class="doc-item-name">prxml<span class="namespace">(clojure.contrib.prxml)</span></h2><ul class="var-arglists"><li>(<span class="var-name">prxml</span> &amp; args)</li></ul><div class="var-docstring"><p>Print XML to *out*.  Vectors become XML tags: the first item is the
  tag name; optional second item is a map of attributes.</p><p>Sequences are processed recursively, so you can use map and other
  sequence functions inside prxml.</p><p>(prxml [:p {:class &quot;greet&quot;} [:i &quot;Ladies &amp; gentlemen&quot;]])
    ; =&gt; &lt;p class=&quot;greet&quot;&gt;&lt;i&gt;Ladies &amp;amp; gentlemen&lt;/i&gt;&lt;/p&gt;</p><p>PSEUDO-TAGS: some keywords have special meaning:</p><p>:raw!      do not XML-escape contents
    :comment!  create an XML comment
    :decl!     create an XML declaration, with attributes
    :cdata!    create a CDATA section
    :doctype!  create a DOCTYPE!</p><p>(prxml [:p [:raw! &quot;&lt;i&gt;here &amp; gone&lt;/i&gt;&quot;]])
    ; =&gt; &lt;p&gt;&lt;i&gt;here &amp; gone&lt;/i&gt;&lt;/p&gt;</p><p>(prxml [:decl! {:version &quot;1.1&quot;}])
    ; =&gt; &lt;?xml version=&quot;1.1&quot; encoding=&quot;UTF-8&quot;?&gt;</p></div><div class="var-source"><pre>; clojure/contrib/prxml.clj:142
(defn prxml
  [&amp; args]
  (doseq [arg args] (print-xml arg)))</pre></div><div class="license"><p>Copyright (c) Rich Hickey. All rights reserved.</p><p>The use and distribution terms for this software are covered by the <a href="http://opensource.org/licenses/eclipse-1.0.php">Eclipse Public License 1.0</a>, which can be found in the file
          epl-v10.html at the root of this distribution. By using this software
          in any fashion, you are agreeing to be bound by the terms of this
          license. You must not remove this notice, or any other, from this
          software.</p></div></div>